import { proSimply } from "@/hooks/graph/editable/generate/generate"

// 根据arg参数生成全局配置参数
export function wPublic(arg) {
  const { graphId, graphData, graphInstance } = arg

  const publicC = {
    // 监听事件使用到的类型
    eventEmit: ['node:click', 'canvas:click'],
    graphOptions: graphOptionsGenerate(arg)
  }

  return publicC
}

// 生成配置
function graphOptionsGenerate(arg) {
  return proSimply(arg)
}